package com.lagou.service;

import com.lagou.bean.Student;
import com.lagou.dao.StudentViewDao;
import com.lagou.factory.StudentViewDaoFactory;

import java.util.List;

public class StudentViewSerive {
    StudentViewDao studentViewDao;

    public StudentViewSerive() {
        this.studentViewDao = StudentViewDaoFactory.getStudentViewDao();
    }

    public List<Student> studentView(){
        return studentViewDao.StudentView();
    }
}
